package observer;

/**
 * 具体的观察者
 * @Description:
 * @author wanglong
 * @createDate: 2019年3月17日 下午3:09:52
 */
public class CurrentConditionDisplay implements Observer{

	public CurrentConditionDisplay(Subject weatherData) {
		weatherData.registerObserver(this);
	}
	
	@Override
	public void update(float temp, float humidity, float pressure) {
		System.out.println("CurrentConditionsDisplay.update: " + temp + " " + humidity + " " + pressure);
	}

}
